<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
	<th:block th:include="include/include :: header('租户列表')" />
</head>
<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="role-form">
					<div class="select-list">
						<ul>
							<li>
								租户名称：<input type="text" name="name"/>
							</li>
							<li>
								状态：<select name="status" th:with="type=${@dict.getType('status_type')}">
									<option value="">所有</option>
									<option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}"></option>
								</select>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							    <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
		
			<div class="btn-group-sm" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.operate.add()" sec:authorize="hasAuthority('admin_systenant_add')">
	                <i class="fa fa-plus"></i> 新增
	            </a>
	        </div>
	        
	        <div class="col-sm-12 select-table table-striped">
			    <table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
	<th:block th:include="include/include :: footer" />	
	<script th:inline="javascript">
		/*<![CDATA[*/
			var editFlag = [[${@permission.hasPermi('admin_systenant_edit')}]];
			var deleteFlag = [[${@permission.hasPermi('admin_systenant_del')}]];
			var status_datas = [[${@dict.getType('status_type')}]];
		/*]]>*/
	</script>
	<script th:src="@{/pages/sysadm/tenant/tenantList.js}"></script>
</body>
</html>